//
//  PB2TableViewCell.m
//  UI_元旦豆瓣小集合
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "PB2TableViewCell.h"

@implementation PB2TableViewCell
- (void)dealloc {
    [_img1 release];
    [_img2 release];
    [_word release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self win];
        
        
    }return self;
}

- (void) win {
    self.img2 = [[UIImageView alloc] init];
    [self.contentView addSubview:_img2];
    [_img2 release];
    
    self.word = [[UILabel alloc] init];
    [_img2 addSubview:_word];
    [_word release];
    
    self.img1 = [[UIImageView alloc] init];
    [_img2 addSubview:_img1];
    [_img1 release];
    
    
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _img2.frame = CGRectMake(20, 9, 340, 150);
    
    _img1.frame = CGRectMake(5, 3, 100, 140);
    
    _word.frame = CGRectMake(140, 60, 150, 30);
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
